package com.wicket.okrframework.biz.service.dto.res;


import com.wicket.okrframework.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.Objects;


@Data
public class RoleRelDto extends BaseDto implements Serializable {

    /**
     * 角色人员ID:
     */
    @ApiModelProperty("角色人员ID")
    private String roleMemberId;

    /**
     * 角色标识:
     */
    @ApiModelProperty("角色标识")
    private String roleCode;

    /**
     * 账号ID:
     */
    @ApiModelProperty("账号ID")
    private String userId;

    /**
     * 真实姓名:
     */
    @ApiModelProperty("真实姓名")
    private String idCardName;

    /**
     * 用户昵称:
     */
    @ApiModelProperty("用户昵称")
    private String nickName;

    /**
     * 真实头像:
     */
    @ApiModelProperty("真实头像")
    private String userFace;

    /**
     * 身份人员编号:
     */
    @ApiModelProperty("身份人员编号")
    private String roleMemberCode;

    /**
     * 职务信息展示:
     */
    @ApiModelProperty("职务信息展示")
    private String positionIdName;

    /**
     * 备注首位字母:
     */
    @ApiModelProperty("备注首位字母")
    private String firstLetter;
    /**
     * 身份人员ID:
     */
    @ApiModelProperty("身份人员ID")
    private String originalRoleMemberId;
    /**
     * 角色名称:
     */
    @ApiModelProperty("角色名称")
    private String roleName;
    /**
     * 主体生命周期:
     */
    @ApiModelProperty("主体生命周期")
    private String subjectLifeCycle;
    /**
     * 是否存档:
     */
    @ApiModelProperty("是否存档")
    private String isArchive;
    /**
     * 操作人就职记录ID:
     */
    @ApiModelProperty("操作人就职记录ID")
    private String operationInductionId;
    /**
     * 操作时间:
     */
    @ApiModelProperty("操作时间")
    private Date operateTime;
    /**
     * 是否失效:
     */
    @ApiModelProperty("是否失效")
    private String relationshipValid;
    /**
     * 创建于空间ID:
     */
    @ApiModelProperty("创建于空间ID")
    private String spaceId;
    /**
     * 创建于联盟应用ID:
     */
    @ApiModelProperty("创建于联盟应用ID")
    private String appId;
    /**
     * 角色ID:
     */
    @ApiModelProperty("角色ID")
    private String roleId;
    /**
     * 角色图标:
     */
    @ApiModelProperty("角色图标")
    private String roleLogo;
    /**
     * 备注:
     */
    @ApiModelProperty("备注")
    private String relaMemo;
/**
     * 就职记录ID 
     */
    @ApiModelProperty("就职记录ID")
    private String	 inductionRecordId;

    @Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      RoleRelDto that = (RoleRelDto) o;
      return  roleMemberId == that.roleMemberId&&roleCode == that.roleCode&&userId == that.userId&&idCardName == that.idCardName&&nickName == that.nickName&&userFace == that.userFace&&roleMemberCode == that.roleMemberCode&&positionIdName == that.positionIdName&&firstLetter == that.firstLetter&&originalRoleMemberId == that.originalRoleMemberId&&roleName == that.roleName&&subjectLifeCycle == that.subjectLifeCycle&&isArchive == that.isArchive&&operationInductionId == that.operationInductionId&&operateTime == that.operateTime&&relationshipValid == that.relationshipValid&&spaceId == that.spaceId&&appId == that.appId&&roleId == that.roleId&&roleLogo == that.roleLogo&&relaMemo == that.relaMemo&&inductionRecordId == that.inductionRecordId;
    }

    @Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), roleMemberId,roleCode,userId,idCardName,nickName,userFace,roleMemberCode,positionIdName,firstLetter,originalRoleMemberId,roleName,subjectLifeCycle,isArchive,operationInductionId,operateTime,relationshipValid,spaceId,appId,roleId,roleLogo,relaMemo,inductionRecordId);
    }
}
